An Automatic Program Generator for Multi-Level Specialization
نویسندگان
چکیده
Program specialization can divide a computation into several computation stages. This paper investigates the theoretical limitations and practical problems of standard specialization tools, presents multi-level specialization, and demonstrates that, in combination with the cogen approach, it is far more practical than previously supposed. The program generator which we designed and implemented for a higher-order functional language converts programs into very compact multi-level generating extensions that guarantee fast successive specialization. Experimental results show a remarkable reduction of generation time and generator size compared to previous attempts of multi-level specialization by self-application. Our approach to multi-level specialization seems well-suited for applications where generation time and program size are critical.
منابع مشابه
Efficient Multi-level Generating Extensions for Program Specialization
Multiple program specialization can stage a computation into several computation phases. This paper presents an eective solution for multiple program specialization by generalizing conventional o-line partial evaluation and integrating the \cogen approach" with a multi-level binding-time analysis. This novel \multi-cogen approach" solves two fundamental problems of self-applicable partial evalu...
متن کاملOn the Specialization of Online Program Specializers
Program specializers improve the speed of programs by performing some of the programs' reductions at specialization time rather than at runtime. This specialization process can be time-consuming; one common technique for improving the speed of the specialization of a particular program is to specialize the specializer itself on that program, creating a custom specializer, or program generator, ...
متن کاملA Practical Method for Program Specialization in aMulti - Paradigm Language ?
This paper summarizes our ndings in the development of partial evaluation tools for Curry, a modern multi-paradigm declarative language which combines features from functional programming, logic programming, and concurrent programming. We present a novel approach to perform automatic program specialization in Curry, which diiers from those presented in the literature for the specialization of f...
متن کاملA Unification of Inheritance and Automatic Program Specialization
The object-oriented style of programming facilitates program adaptation and enhances program genericness, but at the expense of efficiency. Automatic program specialization can be used to generate specialized, efficient implementations for specific scenarios, but requires the program to be structured appropriately for specialization and is yet another new concept for the programmer to understan...
متن کاملObject-Oriented Program Specialization: Aspects Into Aspects — Or Maybe Not?
Automatic program specialization is a software engineering technique that configures a program fragment by generating an implementation dedicated to a specific usage context. Given a generic component that solves a whole family of problems and that is implemented in a standard programming language, program specialization can automatically configure this component by generating a specialized imp...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- Lisp and Symbolic Computation
دوره 10 شماره
صفحات -
تاریخ انتشار 1997